home *** CD-ROM | disk | FTP | other *** search
- ## environment_test
- # Use environment variables for performing string concatination and storage.
- {
- -name environment_test
- -start
- -stop
- -action -print
- -action -set foo=
- -action -print foo='%foo%' (should be null)
- -action -set foo="Hello World"
- -action -print foo='%foo%' (should be 'Hello World')
- -action -set foo=
- -action -print foo='%foo%' (should be null again)
- # now sleep to give the human time to read the screen.
- -action -sleep 10000
- }
-
- # build a big string
- {
- -start
- -action -set foo=blat%foo%
- -action -print %foo%
- -action -inc 0 0 0 1
- }
-
- # reset the string every 15 minutes
- {
- -start
- -action -set foo=
- -action -inc 0 0 15 0
- }
-